<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>    	
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
        <script language="javascript" src="js/jquery.hotkeys.js" type="text/javascript"></script>
		<script language="javascript" src="js/key_status.js" type="text/javascript"></script>
		
		<script language="javascript" src="js/player_panel.js" type="text/javascript"></script>
		<script language="javascript" src="js/gravity_missile.js" type="text/javascript"></script>
		<script language="javascript" src="js/image_manager.js" type="text/javascript"></script>
		<script language="javascript" src="js/game_drawable_object.js" type="text/javascript"></script>
		<script language="javascript" src="js/collision_solver.js" type="text/javascript"></script>
		<script language="javascript" src="js/alien_ship.js" type="text/javascript"></script>
		<script language="javascript" src="js/rocket.js" type="text/javascript"></script>
        <script language="javascript" src="js/ball_game.js" type="text/javascript"></script>
        <title>Rockets</title>
        <script>
        	var game = null;        	
        	//initHotKeys(jQuery);
        	window.onload = function (event) {
        		var allLoadedCallback = function(imageManager){
					game = new GameEngine("canvas_panel","player_panel");
					game.imageManager = imageManager;
					game.run();
					var as1 = new AlienShip();				
					as1.parent.x = 100; 
					as1.parent.y = 100;		
					as1.parent.mass = 100;		
					
					game.addObject(as1);		
				}
        		loadImage(allLoadedCallback);        					
				//game.addObject(player); 
			}
        </script>
    </head>
    <body>
        <h1>Rockets</h1>
		<div>
			<canvas style="position:fixed; top:60px; left:10px"  id="player_panel" width="600" height="300">
				Canvas not supported
			</canvas>
			<canvas style="position:fixed; top:100px; left:120px"  id="canvas_panel" width="600" height="500">
				Canvas not supported
			</canvas>		
		</div>
    </body>
</html>
